<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {% include 'userInfo/base1.html' %}
    <title>登录</title>
</head>
<body>
    <form action="" method="post" >
        {% csrf_token %}
        <table align="center">
            <tr>
                <td>{{ userform.uname.label }}</td>
                <td>{{ userform.uname }}{{ userform.errors.uname.0 }}</td>
            </tr>
            <tr>
                <td>{{ userform.upwd.label }}</td>
                <td>{{ userform.upwd }}</td>
            </tr>
            <tr align="center">
                <td colspan="2">
                    <input type="submit" value="登录">
                    <button onclick="goRegister();return false;">注册</button>
                </td>
            </tr>
        </table>
    </form>

    <script>
        function goRegister() {
            window.location.href = '/userinfo/register/'
        }
        
    </script>
</body>
</html>